.class Les/l30$a;
.super Ljava/lang/Object;
.source "AutoBackUpCache.java"

# interfaces
.implements Les/l30$f;


# annotations
.annotation system Ldalvik/annotation/EnclosingMethod;
    value = Les/l30;->a(Ljava/lang/String;)Ljava/util/ArrayList;
.end annotation

.annotation system Ldalvik/annotation/InnerClass;
    accessFlags = 0x0
    name = null
.end annotation


# instance fields
.field final synthetic a:Ljava/lang/String;

.field final synthetic b:Ljava/util/ArrayList;

.field final synthetic c:Les/l30;


# direct methods
.method constructor <init>(Les/l30;Ljava/lang/String;Ljava/util/ArrayList;)V
    .locals 0

    .line 1
    iput-object p1, p0, Les/l30$a;->c:Les/l30;

    iput-object p2, p0, Les/l30$a;->a:Ljava/lang/String;

    iput-object p3, p0, Les/l30$a;->b:Ljava/util/ArrayList;

    invoke-direct {p0}, Ljava/lang/Object;-><init>()V

    return-void
.end method


# virtual methods
.method public a()Z
    .locals 7

    const/4 v0, 0x2

    new-array v0, v0, [Ljava/lang/Object;

    const-string v1, "file_backup_table"

    const/4 v2, 0x0

    aput-object v1, v0, v2

    const-string v1, "dest"

    const/4 v3, 0x1

    aput-object v1, v0, v3

    const-string v4, "select * from %s where %s = ?"

    .line 1
    invoke-static {v4, v0}, Ljava/lang/String;->format(Ljava/lang/String;[Ljava/lang/Object;)Ljava/lang/String;

    move-result-object v0

    .line 2
    iget-object v4, p0, Les/l30$a;->c:Les/l30;

    invoke-static {v4}, Les/l30;->a(Les/l30;)Landroid/database/sqlite/SQLiteDatabase;

    move-result-object v4

    new-array v5, v3, [Ljava/lang/String;

    iget-object v6, p0, Les/l30$a;->a:Ljava/lang/String;

    aput-object v6, v5, v2

    invoke-virtual {v4, v0, v5}, Landroid/database/sqlite/SQLiteDatabase;->rawQuery(Ljava/lang/String;[Ljava/lang/String;)Landroid/database/Cursor;

    move-result-object v0

    .line 3
    invoke-interface {v0}, Landroid/database/Cursor;->moveToFirst()Z

    move-result v4

    if-eqz v4, :cond_1

    .line 4
    :cond_0
    new-instance v2, Les/p30;

    invoke-direct {v2}, Les/p30;-><init>()V

    const-string v4, "id"

    .line 5
    invoke-interface {v0, v4}, Landroid/database/Cursor;->getColumnIndex(Ljava/lang/String;)I

    move-result v4

    invoke-interface {v0, v4}, Landroid/database/Cursor;->getInt(I)I

    move-result v4

    iput v4, v2, Les/p30;->a:I

    const-string v4, "hash"

    .line 6
    invoke-interface {v0, v4}, Landroid/database/Cursor;->getColumnIndex(Ljava/lang/String;)I

    move-result v4

    invoke-interface {v0, v4}, Landroid/database/Cursor;->getString(I)Ljava/lang/String;

    move-result-object v4

    iput-object v4, v2, Les/p30;->c:Ljava/lang/String;

    const-string v4, "up_time"

    .line 7
    invoke-interface {v0, v4}, Landroid/database/Cursor;->getColumnIndex(Ljava/lang/String;)I

    move-result v4

    invoke-interface {v0, v4}, Landroid/database/Cursor;->getLong(I)J

    move-result-wide v4

    iput-wide v4, v2, Les/p30;->b:J

    .line 8
    invoke-interface {v0, v1}, Landroid/database/Cursor;->getColumnIndex(Ljava/lang/String;)I

    move-result v4

    invoke-interface {v0, v4}, Landroid/database/Cursor;->getString(I)Ljava/lang/String;

    move-result-object v4

    iput-object v4, v2, Les/p30;->d:Ljava/lang/String;

    const-string v4, "full_path"

    .line 9
    invoke-interface {v0, v4}, Landroid/database/Cursor;->getColumnIndex(Ljava/lang/String;)I

    move-result v4

    invoke-interface {v0, v4}, Landroid/database/Cursor;->getString(I)Ljava/lang/String;

    move-result-object v4

    iput-object v4, v2, Les/p30;->e:Ljava/lang/String;

    .line 10
    iget-object v4, p0, Les/l30$a;->b:Ljava/util/ArrayList;

    invoke-virtual {v4, v2}, Ljava/util/ArrayList;->add(Ljava/lang/Object;)Z

    .line 11
    invoke-interface {v0}, Landroid/database/Cursor;->moveToNext()Z

    move-result v2

    if-nez v2, :cond_0

    return v3

    :cond_1
    return v2
.end method
